package com.rd.student.jike.class4.xiayinyin.day0801;

import java.util.Arrays;

public class Exercises03 {
    public static void main(String[] args) {
        int[] arr = {60,77,33,55,11,22,80};
        for (int i = arr.length-1; i > 1; i--) {
            for (int j = 0; j < i; j++) {
                int a = arr[j];
                if (a > arr[j+1]){
                    arr[j] = arr[j+1];
                    arr[j+1] = a;
                }
            }
        }
        System.out.println(Arrays.toString(arr));
    }
}
